package com.xm.settlement.model;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.xm.settlement.commons.utils.JsonUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Loysen on 2017/3/8
 * 服务中心数据库
 */
@TableName(value = "app_service")
public class AppService implements Serializable{

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 服务中心编码 */
    @TableField(value = "service_code")
    private Integer serviceCode;

    /** 服务中心名称 */
    @TableField(value = "service_name")
    private String serviceName;

    /** 服务中心联系人员 */
    @TableField(value = "p_name")
    private String pName;

    /** 服务中心联系电话 */
    @TableField(value = "p_phone")
    private String pPhone;

    /** 状态。1正常，0禁用 */
    private Integer status;

    /** 创建人 */
    @TableField(value = "create_id")
    private Long createId;

    @TableField(value = "create_time")
    private Date createTime;

    /** 修改人 */
    @TableField(value = "update_id")
    private Long updateId;

    @TableField(value = "update_time")
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getServiceCode() {
        return serviceCode;
    }

    public void setServiceCode(Integer serviceCode) {
        this.serviceCode = serviceCode;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getpPhone() {
        return pPhone;
    }

    public void setpPhone(String pPhone) {
        this.pPhone = pPhone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long getCreateId() {
        return createId;
    }

    public void setCreateId(Long createId) {
        this.createId = createId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateId() {
        return updateId;
    }

    public void setUpdateId(Long updateId) {
        this.updateId = updateId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return JsonUtils.toJson(this);
    }
}
